.class public Les/gx;
.super Ljava/lang/Object;
.source "DownloadTaskView.java"


# static fields
.field public static final s:Ljava/text/DateFormat;


# instance fields
.field private a:Landroid/content/Context;

.field private b:Landroid/view/View;

.field private c:Landroid/widget/ImageView;

.field private d:Landroid/widget/ImageView;

.field private e:Landroid/widget/TextView;

.field public f:Landroid/view/View;

.field public g:Landroid/widget/ImageView;

.field private h:Landroid/widget/CheckBox;

.field private i:Landroid/view/ViewGroup;

.field private j:Landroid/view/ViewGroup;

.field private k:Les/ex;

.field private l:Les/s80;

.field private m:Lcom/estrongs/android/ui/theme/b;

.field private n:Ljava/lang/Object;

.field private o:Lcom/estrongs/android/ui/notification/d;

.field private p:Lcom/estrongs/android/pop/e;

.field private q:Z

.field private r:Les/z80;


# direct methods
.method static constructor <clinit>()V
    .locals 2

    .line 1
    new-instance v0, Ljava/text/SimpleDateFormat;

    const-string v1, "yyyy-MM-dd HH:mm:ss"

    invoke-direct {v0, v1}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V

    sput-object v0, Les/gx;->s:Ljava/text/DateFormat;

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Les/s80;)V
    .locals 2

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    new-instance v0, Ljava/lang/Object;

    invoke-direct {v0}, Ljava/lang/Object;-><init>()V

    iput-object v0, p0, Les/gx;->n:Ljava/lang/Object;

    const/4 v0, 0x0

    .line 3
    iput-object v0, p0, Les/gx;->o:Lcom/estrongs/android/ui/notification/d;

    .line 4
    iput-object v0, p0, Les/gx;->p:Lcom/estrongs/android/pop/e;

    const/4 v1, 0x0

    .line 5
    iput-boolean v1, p0, Les/gx;->q:Z

    .line 6
    new-instance v1, Les/gx$c;

    invoke-direct {v1, p0}, Les/gx$c;-><init>(Les/gx;)V

    iput-object v1, p0, Les/gx;->r:Les/z80;

    .line 7
    iput-object p1, p0, Les/gx;->a:Landroid/content/Context;

    .line 8
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object p1

    iput-object p1, p0, Les/gx;->m:Lcom/estrongs/android/ui/theme/b;

    .line 9
    iget-object p1, p0, Les/gx;->a:Landroid/content/Context;

    invoke-static {p1}, Lcom/estrongs/android/pop/esclasses/h;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object p1

    const v1, 0x7f0c0319

    invoke-virtual {p1, v1, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p1

    iput-object p1, p0, Les/gx;->b:Landroid/view/View;

    const v0, 0x7f090b3b

    .line 10
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/ImageView;

    iput-object p1, p0, Les/gx;->c:Landroid/widget/ImageView;

    .line 11
    iget-object p1, p0, Les/gx;->b:Landroid/view/View;

    const v0, 0x7f090334

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/view/ViewGroup;

    iput-object p1, p0, Les/gx;->j:Landroid/view/ViewGroup;

    .line 12
    iget-object p1, p0, Les/gx;->b:Landroid/view/View;

    const v0, 0x7f090939

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/view/ViewGroup;

    iput-object p1, p0, Les/gx;->i:Landroid/view/ViewGroup;

    .line 13
    iget-object p1, p0, Les/gx;->b:Landroid/view/View;

    const v0, 0x7f090b3f

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    iput-object p1, p0, Les/gx;->f:Landroid/view/View;

    .line 14
    iget-object p1, p0, Les/gx;->b:Landroid/view/View;

    const v0, 0x7f090b41

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    iput-object p1, p0, Les/gx;->e:Landroid/widget/TextView;

    .line 15
    iget-object p1, p0, Les/gx;->b:Landroid/view/View;

    const v0, 0x7f090b3e

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/ImageView;

    iput-object p1, p0, Les/gx;->d:Landroid/widget/ImageView;

    .line 16
    iget-object p1, p0, Les/gx;->b:Landroid/view/View;

    const v0, 0x7f090207

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/CheckBox;

    iput-object p1, p0, Les/gx;->h:Landroid/widget/CheckBox;

    .line 17
    iget-object p1, p0, Les/gx;->b:Landroid/view/View;

    const v0, 0x7f0907bc

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    .line 18
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object v0

    const v1, 0x7f060330

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/theme/b;->a(I)I

    move-result v0

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setTextColor(I)V

    .line 19
    iget-object p1, p0, Les/gx;->b:Landroid/view/View;

    const v0, 0x7f0904c6

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/ImageView;

    iput-object p1, p0, Les/gx;->g:Landroid/widget/ImageView;

    .line 20
    new-instance p1, Lcom/estrongs/android/pop/e;

    iget-object v0, p0, Les/gx;->a:Landroid/content/Context;

    check-cast v0, Landroid/app/Activity;

    invoke-direct {p1, v0}, Lcom/estrongs/android/pop/e;-><init>(Landroid/content/Context;)V

    iput-object p1, p0, Les/gx;->p:Lcom/estrongs/android/pop/e;

    .line 21
    new-instance p1, Les/gx$a;

    iget-object v0, p0, Les/gx;->a:Landroid/content/Context;

    check-cast v0, Landroid/app/Activity;

    iget-object v1, p0, Les/gx;->i:Landroid/view/ViewGroup;

    invoke-direct {p1, p0, v0, v1}, Les/gx$a;-><init>(Les/gx;Landroid/app/Activity;Landroid/view/ViewGroup;)V

    iput-object p1, p0, Les/gx;->k:Les/ex;

    .line 22
    invoke-virtual {p0, p2}, Les/gx;->a(Les/s80;)V

    return-void
.end method

.method static synthetic a(Les/gx;)Ljava/lang/Object;
    .locals 0

    .line 1
    iget-object p0, p0, Les/gx;->n:Ljava/lang/Object;

    return-object p0
.end method

.method static synthetic b(Les/gx;)Les/s80;
    .locals 0

    .line 1
    iget-object p0, p0, Les/gx;->l:Les/s80;

    return-object p0
.end method

.method static synthetic c(Les/gx;)Les/ex;
    .locals 0

    .line 1
    iget-object p0, p0, Les/gx;->k:Les/ex;

    return-object p0
.end method


# virtual methods
.method public a()Les/s80;
    .locals 1

    .line 28
    iget-object v0, p0, Les/gx;->l:Les/s80;

    return-object v0
.end method

.method protected a(I)V
    .locals 9

    .line 29
    iget-object v0, p0, Les/gx;->k:Les/ex;

    invoke-virtual {v0}, Les/ex;->p()V

    .line 30
    iget-object v0, p0, Les/gx;->c:Landroid/widget/ImageView;

    iget-object v1, p0, Les/gx;->l:Les/s80;

    invoke-virtual {v1}, Les/s80;->w()Lorg/json/JSONObject;

    move-result-object v1

    const-string v2, "title"

    invoke-virtual {v1, v2}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/estrongs/android/pop/netfs/utils/TypeUtils;->getFileType(Ljava/lang/String;)I

    move-result v1

    invoke-static {v1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Les/rj;->b(Ljava/lang/String;)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 31
    iget-object v0, p0, Les/gx;->l:Les/s80;

    instance-of v0, v0, Les/j70;

    const/4 v1, 0x0

    const/4 v3, 0x4

    const/4 v4, 0x0

    if-eqz v0, :cond_0

    .line 32
    iget-object v0, p0, Les/gx;->k:Les/ex;

    iget-object v5, p0, Les/gx;->a:Landroid/content/Context;

    const v6, 0x7f110321

    invoke-virtual {v5, v6}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v0, v5}, Les/ex;->b(Ljava/lang/String;)V

    .line 33
    iget-object v0, p0, Les/gx;->k:Les/ex;

    iget-object v0, v0, Les/ex;->k:Landroid/widget/TextView;

    iget-object v5, p0, Les/gx;->a:Landroid/content/Context;

    invoke-virtual {v5, v6}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v0, v5}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 34
    iget-object v0, p0, Les/gx;->f:Landroid/view/View;

    invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V

    goto :goto_1

    .line 35
    :cond_0
    iget-object v0, p0, Les/gx;->f:Landroid/view/View;

    iget-boolean v5, p0, Les/gx;->q:Z

    if-eqz v5, :cond_1

    const/4 v5, 0x4

    goto :goto_0

    :cond_1
    const/4 v5, 0x0

    :goto_0
    invoke-virtual {v0, v5}, Landroid/view/View;->setVisibility(I)V

    .line 36
    iget-object v0, p0, Les/gx;->k:Les/ex;

    invoke-virtual {v0, v1}, Les/ex;->b(Ljava/lang/String;)V

    :goto_1
    const/4 v0, 0x5

    const/4 v5, 0x1

    const/16 v6, 0x8

    if-eq p1, v5, :cond_6

    const/4 v7, 0x2

    if-eq p1, v7, :cond_5

    const/4 v1, 0x3

    if-eq p1, v1, :cond_6

    if-eq p1, v3, :cond_2

    if-eq p1, v0, :cond_6

    goto/16 :goto_3

    .line 37
    :cond_2
    iget-object p1, p0, Les/gx;->j:Landroid/view/ViewGroup;

    invoke-virtual {p1, v4}, Landroid/view/ViewGroup;->setVisibility(I)V

    .line 38
    iget-object p1, p0, Les/gx;->i:Landroid/view/ViewGroup;

    invoke-virtual {p1, v6}, Landroid/view/ViewGroup;->setVisibility(I)V

    .line 39
    iget-object p1, p0, Les/gx;->j:Landroid/view/ViewGroup;

    const v0, 0x7f0907bc

    invoke-virtual {p1, v0}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    .line 40
    iget-object v0, p0, Les/gx;->j:Landroid/view/ViewGroup;

    const v1, 0x7f090ad9

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    .line 41
    iget-object v1, p0, Les/gx;->j:Landroid/view/ViewGroup;

    const v6, 0x7f090298

    invoke-virtual {v1, v6}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    .line 42
    iget-object v6, p0, Les/gx;->l:Les/s80;

    invoke-virtual {v6}, Les/s80;->w()Lorg/json/JSONObject;

    move-result-object v6

    invoke-virtual {v6, v2}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {p1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 43
    iget-object v2, p0, Les/gx;->l:Les/s80;

    invoke-virtual {v2}, Les/s80;->w()Lorg/json/JSONObject;

    move-result-object v2

    const-string v6, "target"

    invoke-virtual {v2, v6}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 44
    invoke-static {v2}, Lcom/estrongs/android/util/h0;->y1(Ljava/lang/String;)Z

    move-result v6

    if-eqz v6, :cond_3

    invoke-static {v2}, Lcom/estrongs/fs/impl/local/f;->c(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_3

    .line 45
    iget-object v2, p0, Les/gx;->m:Lcom/estrongs/android/ui/theme/b;

    const v6, 0x7f06006e

    invoke-virtual {v2, v6}, Lcom/estrongs/android/ui/theme/b;->a(I)I

    move-result v2

    invoke-virtual {p1, v2}, Landroid/widget/TextView;->setTextColor(I)V

    .line 46
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p1}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v6

    invoke-virtual {v2, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string v6, "  ("

    invoke-virtual {v2, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v6, p0, Les/gx;->a:Landroid/content/Context;

    const v7, 0x7f1102cd

    new-array v5, v5, [Ljava/lang/Object;

    const-string v8, ""

    aput-object v8, v5, v4

    invoke-virtual {v6, v7, v5}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    const-string v6, "\""

    invoke-virtual {v5, v6, v8}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v2, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v5, ")"

    invoke-virtual {v2, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {p1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_2

    .line 47
    :cond_3
    iget-object v2, p0, Les/gx;->m:Lcom/estrongs/android/ui/theme/b;

    const v5, 0x7f060330

    invoke-virtual {v2, v5}, Lcom/estrongs/android/ui/theme/b;->a(I)I

    move-result v2

    invoke-virtual {p1, v2}, Landroid/widget/TextView;->setTextColor(I)V

    .line 48
    :goto_2
    iget-object p1, p0, Les/gx;->l:Les/s80;

    invoke-virtual {p1}, Les/s80;->w()Lorg/json/JSONObject;

    move-result-object p1

    const-string v2, "size"

    invoke-virtual {p1, v2}, Lorg/json/JSONObject;->optLong(Ljava/lang/String;)J

    move-result-wide v5

    invoke-static {v5, v6}, Lcom/estrongs/fs/util/f;->g(J)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 49
    sget-object p1, Les/gx;->s:Ljava/text/DateFormat;

    new-instance v0, Ljava/util/Date;

    iget-object v2, p0, Les/gx;->l:Les/s80;

    invoke-virtual {v2}, Les/s80;->w()Lorg/json/JSONObject;

    move-result-object v2

    const-string v5, "end_time"

    invoke-virtual {v2, v5}, Lorg/json/JSONObject;->optLong(Ljava/lang/String;)J

    move-result-wide v5

    invoke-direct {v0, v5, v6}, Ljava/util/Date;-><init>(J)V

    invoke-virtual {p1, v0}, Ljava/text/DateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v1, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 50
    iget-object p1, p0, Les/gx;->d:Landroid/widget/ImageView;

    const v0, 0x7f0809b8

    invoke-virtual {p1, v0}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 51
    iget-object p1, p0, Les/gx;->e:Landroid/widget/TextView;

    iget-object v0, p0, Les/gx;->a:Landroid/content/Context;

    const v1, 0x7f110056

    invoke-virtual {v0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 52
    iget-boolean p1, p0, Les/gx;->q:Z

    if-eqz p1, :cond_4

    .line 53
    iget-object p1, p0, Les/gx;->f:Landroid/view/View;

    invoke-virtual {p1, v3}, Landroid/view/View;->setVisibility(I)V

    goto/16 :goto_3

    .line 54
    :cond_4
    iget-object p1, p0, Les/gx;->f:Landroid/view/View;

    invoke-virtual {p1, v4}, Landroid/view/View;->setVisibility(I)V

    goto/16 :goto_3

    .line 55
    :cond_5
    iget-object p1, p0, Les/gx;->j:Landroid/view/ViewGroup;

    invoke-virtual {p1, v6}, Landroid/view/ViewGroup;->setVisibility(I)V

    .line 56
    iget-object p1, p0, Les/gx;->i:Landroid/view/ViewGroup;

    invoke-virtual {p1, v4}, Landroid/view/ViewGroup;->setVisibility(I)V

    .line 57
    iget-object p1, p0, Les/gx;->k:Les/ex;

    iget-object v0, p0, Les/gx;->l:Les/s80;

    invoke-virtual {v0}, Les/s80;->w()Lorg/json/JSONObject;

    move-result-object v0

    invoke-virtual {v0, v2}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Les/ex;->c(Ljava/lang/String;)V

    .line 58
    iget-object p1, p0, Les/gx;->l:Les/s80;

    instance-of p1, p1, Les/d70;

    if-eqz p1, :cond_7

    .line 59
    iget-object p1, p0, Les/gx;->k:Les/ex;

    invoke-virtual {p1, v1}, Les/ex;->b(Ljava/lang/String;)V

    .line 60
    iget-object p1, p0, Les/gx;->d:Landroid/widget/ImageView;

    const v0, 0x7f0809bb

    invoke-virtual {p1, v0}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 61
    iget-object p1, p0, Les/gx;->e:Landroid/widget/TextView;

    iget-object v0, p0, Les/gx;->a:Landroid/content/Context;

    const v1, 0x7f11005b

    invoke-virtual {v0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_3

    .line 62
    :cond_6
    iget-object v1, p0, Les/gx;->j:Landroid/view/ViewGroup;

    invoke-virtual {v1, v6}, Landroid/view/ViewGroup;->setVisibility(I)V

    .line 63
    iget-object v1, p0, Les/gx;->i:Landroid/view/ViewGroup;

    invoke-virtual {v1, v4}, Landroid/view/ViewGroup;->setVisibility(I)V

    .line 64
    iget-object v1, p0, Les/gx;->l:Les/s80;

    instance-of v1, v1, Les/d70;

    if-eqz v1, :cond_7

    .line 65
    iget-object v1, p0, Les/gx;->d:Landroid/widget/ImageView;

    const v3, 0x7f0809bc

    invoke-virtual {v1, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 66
    iget-object v1, p0, Les/gx;->e:Landroid/widget/TextView;

    iget-object v3, p0, Les/gx;->a:Landroid/content/Context;

    const v4, 0x7f110075

    invoke-virtual {v3, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    if-ne p1, v0, :cond_7

    .line 67
    iget-object p1, p0, Les/gx;->k:Les/ex;

    iget-object p1, p1, Les/ex;->h:Les/w80;

    iget-object v0, p0, Les/gx;->l:Les/s80;

    iget-object v1, v0, Les/s80;->c:Les/w80$a;

    invoke-interface {p1, v0, v1}, Les/w80;->a(Les/s80;Les/w80$a;)V

    .line 68
    iget-object p1, p0, Les/gx;->k:Les/ex;

    iget-object v0, p0, Les/gx;->a:Landroid/content/Context;

    const v1, 0x7f11092e

    invoke-virtual {v0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Les/ex;->b(Ljava/lang/String;)V

    .line 69
    iget-object p1, p0, Les/gx;->k:Les/ex;

    iget-object v0, p0, Les/gx;->l:Les/s80;

    iget-object v0, v0, Les/s80;->c:Les/w80$a;

    iget-wide v0, v0, Les/w80$a;->e:J

    invoke-virtual {p1, v0, v1}, Les/ex;->e(J)V

    .line 70
    iget-object p1, p0, Les/gx;->k:Les/ex;

    iget-object v0, p0, Les/gx;->l:Les/s80;

    iget-object v0, v0, Les/s80;->c:Les/w80$a;

    iget-wide v0, v0, Les/w80$a;->f:J

    invoke-virtual {p1, v0, v1}, Les/ex;->f(J)V

    .line 71
    iget-object p1, p0, Les/gx;->l:Les/s80;

    iget-object p1, p1, Les/s80;->c:Les/w80$a;

    iget-wide v0, p1, Les/w80$a;->f:J

    const-wide/16 v3, 0x0

    cmp-long p1, v0, v3

    if-nez p1, :cond_7

    .line 72
    iget-object p1, p0, Les/gx;->k:Les/ex;

    invoke-virtual {p1}, Les/ex;->l()V

    .line 73
    iget-object p1, p0, Les/gx;->k:Les/ex;

    iget-object v0, p0, Les/gx;->l:Les/s80;

    invoke-virtual {v0}, Les/s80;->w()Lorg/json/JSONObject;

    move-result-object v0

    invoke-virtual {v0, v2}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Les/ex;->c(Ljava/lang/String;)V

    :cond_7
    :goto_3
    return-void
.end method

.method public a(Les/s80;)V
    .locals 6

    .line 2
    iget-object v0, p0, Les/gx;->l:Les/s80;

    if-eqz v0, :cond_0

    .line 3
    iget-object v1, p0, Les/gx;->r:Les/z80;

    invoke-virtual {v0, v1}, Les/s80;->b(Les/z80;)V

    .line 4
    iget-object v1, p0, Les/gx;->k:Les/ex;

    iget-object v1, v1, Les/ex;->h:Les/w80;

    invoke-virtual {v0, v1}, Les/s80;->b(Les/w80;)V

    .line 5
    :cond_0
    iget-object v0, p0, Les/gx;->k:Les/ex;

    invoke-virtual {p1}, Les/s80;->w()Lorg/json/JSONObject;

    move-result-object v1

    const-string v2, "title"

    invoke-virtual {v1, v2}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Les/ex;->c(Ljava/lang/String;)V

    .line 6
    invoke-virtual {p1}, Les/s80;->m()I

    move-result v0

    const/4 v1, 0x4

    if-eq v0, v1, :cond_2

    iget-object v0, p1, Les/s80;->c:Les/w80$a;

    if-eqz v0, :cond_2

    .line 7
    iget-wide v0, v0, Les/w80$a;->e:J

    const-wide/16 v3, 0x0

    cmp-long v5, v0, v3

    if-lez v5, :cond_1

    .line 8
    iget-object v3, p0, Les/gx;->k:Les/ex;

    invoke-virtual {v3, v0, v1}, Les/ex;->e(J)V

    .line 9
    iget-object v0, p0, Les/gx;->k:Les/ex;

    iget-object v1, p1, Les/s80;->c:Les/w80$a;

    iget-wide v3, v1, Les/w80$a;->f:J

    invoke-virtual {v0, v3, v4}, Les/ex;->f(J)V

    goto :goto_0

    .line 10
    :cond_1
    iget-object v0, p0, Les/gx;->k:Les/ex;

    invoke-virtual {v0}, Les/ex;->o()V

    .line 11
    :cond_2
    :goto_0
    iget-object v0, p0, Les/gx;->k:Les/ex;

    iget-object v0, v0, Les/ex;->h:Les/w80;

    invoke-virtual {p1, v0}, Les/s80;->a(Les/w80;)V

    .line 12
    iget-object v0, p0, Les/gx;->r:Les/z80;

    invoke-virtual {p1, v0}, Les/s80;->a(Les/z80;)V

    .line 13
    instance-of v0, p1, Les/d70;

    if-eqz v0, :cond_3

    .line 14
    iget-object v0, p0, Les/gx;->p:Lcom/estrongs/android/pop/e;

    invoke-virtual {p1, v0}, Les/s80;->a(Les/v80;)V

    .line 15
    :cond_3
    instance-of v0, p1, Les/j70;

    const/4 v1, 0x3

    if-eqz v0, :cond_5

    .line 16
    invoke-virtual {p1}, Les/s80;->m()I

    move-result v0

    const/4 v3, 0x1

    if-ne v0, v3, :cond_4

    .line 17
    invoke-virtual {p1}, Les/s80;->d()V

    goto :goto_1

    :cond_4
    if-ne v0, v1, :cond_5

    .line 18
    invoke-virtual {p1}, Les/s80;->v()V

    .line 19
    :cond_5
    :goto_1
    iget-object v0, p0, Les/gx;->c:Landroid/widget/ImageView;

    invoke-virtual {p1}, Les/s80;->w()Lorg/json/JSONObject;

    move-result-object v3

    invoke-virtual {v3, v2}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/estrongs/android/pop/netfs/utils/TypeUtils;->getFileType(Ljava/lang/String;)I

    move-result v2

    invoke-static {v2}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Les/rj;->b(Ljava/lang/String;)Landroid/graphics/drawable/Drawable;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 20
    iput-object p1, p0, Les/gx;->l:Les/s80;

    .line 21
    invoke-virtual {p1}, Les/s80;->m()I

    move-result v0

    invoke-virtual {p0, v0}, Les/gx;->a(I)V

    .line 22
    invoke-virtual {p1}, Les/s80;->m()I

    move-result v0

    const/4 v2, 0x2

    if-eq v0, v2, :cond_6

    invoke-virtual {p1}, Les/s80;->m()I

    move-result v0

    if-ne v0, v1, :cond_8

    .line 23
    :cond_6
    sget-object v0, Lcom/estrongs/android/ui/dialog/a1;->s:Ljava/util/Map;

    invoke-virtual {p1}, Les/s80;->k()J

    move-result-wide v1

    invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/estrongs/android/ui/notification/d;

    iput-object v0, p0, Les/gx;->o:Lcom/estrongs/android/ui/notification/d;

    if-nez v0, :cond_8

    .line 24
    iget v0, p1, Les/s80;->d:I

    if-lez v0, :cond_7

    .line 25
    iget-object v0, p0, Les/gx;->a:Landroid/content/Context;

    const-string v1, "notification"

    invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/app/NotificationManager;

    iget v1, p1, Les/s80;->d:I

    invoke-virtual {v0, v1}, Landroid/app/NotificationManager;->cancel(I)V

    .line 26
    :cond_7
    new-instance v0, Les/gx$b;

    iget-object v1, p0, Les/gx;->a:Landroid/content/Context;

    move-object v2, v1

    check-cast v2, Landroid/app/Activity;

    const v3, 0x7f110041

    invoke-virtual {v1, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, p0, v2, v1, p1}, Les/gx$b;-><init>(Les/gx;Landroid/app/Activity;Ljava/lang/CharSequence;Les/s80;)V

    iput-object v0, p0, Les/gx;->o:Lcom/estrongs/android/ui/notification/d;

    .line 27
    sget-object v0, Lcom/estrongs/android/ui/dialog/a1;->s:Ljava/util/Map;

    invoke-virtual {p1}, Les/s80;->k()J

    move-result-wide v1

    invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object p1

    iget-object v1, p0, Les/gx;->o:Lcom/estrongs/android/ui/notification/d;

    invoke-interface {v0, p1, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :cond_8
    return-void
.end method

.method public a(Z)V
    .locals 2

    .line 74
    iget-object v0, p0, Les/gx;->h:Landroid/widget/CheckBox;

    invoke-virtual {v0, p1}, Landroid/widget/CheckBox;->setChecked(Z)V

    if-eqz p1, :cond_0

    .line 75
    iget-object p1, p0, Les/gx;->b:Landroid/view/View;

    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object v0

    const v1, 0x7f060324

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/theme/b;->a(I)I

    move-result v0

    invoke-virtual {p1, v0}, Landroid/view/View;->setBackgroundColor(I)V

    goto :goto_0

    .line 76
    :cond_0
    iget-object p1, p0, Les/gx;->b:Landroid/view/View;

    const/4 v0, 0x0

    invoke-virtual {p1, v0}, Landroid/view/View;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    :goto_0
    return-void
.end method

.method public b()Landroid/view/View;
    .locals 1

    .line 2
    iget-object v0, p0, Les/gx;->b:Landroid/view/View;

    return-object v0
.end method

.method public b(Z)V
    .locals 2

    .line 3
    iput-boolean p1, p0, Les/gx;->q:Z

    const/4 v0, 0x0

    const/4 v1, 0x4

    if-eqz p1, :cond_0

    .line 4
    iget-object p1, p0, Les/gx;->h:Landroid/widget/CheckBox;

    invoke-virtual {p1, v0}, Landroid/widget/CheckBox;->setVisibility(I)V

    .line 5
    iget-object p1, p0, Les/gx;->g:Landroid/widget/ImageView;

    const/16 v0, 0x8

    invoke-virtual {p1, v0}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 6
    iget-object p1, p0, Les/gx;->f:Landroid/view/View;

    invoke-virtual {p1, v1}, Landroid/view/View;->setVisibility(I)V

    goto :goto_0

    .line 7
    :cond_0
    iget-object p1, p0, Les/gx;->h:Landroid/widget/CheckBox;

    invoke-virtual {p1, v1}, Landroid/widget/CheckBox;->setVisibility(I)V

    .line 8
    iget-object p1, p0, Les/gx;->g:Landroid/widget/ImageView;

    invoke-virtual {p1, v0}, Landroid/widget/ImageView;->setVisibility(I)V

    :goto_0
    return-void
.end method

.method public c()V
    .locals 3

    .line 2
    iget-object v0, p0, Les/gx;->k:Les/ex;

    invoke-virtual {v0}, Les/ex;->n()V

    const/4 v0, 0x0

    .line 3
    invoke-virtual {p0, v0}, Les/gx;->a(Z)V

    .line 4
    invoke-virtual {p0, v0}, Les/gx;->b(Z)V

    .line 5
    iget-object v0, p0, Les/gx;->n:Ljava/lang/Object;

    monitor-enter v0

    .line 6
    :try_start_0
    iget-object v1, p0, Les/gx;->l:Les/s80;

    if-eqz v1, :cond_0

    .line 7
    iget-object v1, p0, Les/gx;->l:Les/s80;

    iget-object v2, p0, Les/gx;->k:Les/ex;

    iget-object v2, v2, Les/ex;->h:Les/w80;

    invoke-virtual {v1, v2}, Les/s80;->b(Les/w80;)V

    .line 8
    iget-object v1, p0, Les/gx;->l:Les/s80;

    iget-object v2, p0, Les/gx;->r:Les/z80;

    invoke-virtual {v1, v2}, Les/s80;->b(Les/z80;)V

    const/4 v1, 0x0

    .line 9
    iput-object v1, p0, Les/gx;->l:Les/s80;

    .line 10
    :cond_0
    monitor-exit v0

    return-void

    :catchall_0
    move-exception v1

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v1
.end method
